//
//  UIButton+Handler.m
//  runtime
//
//  Created by eport on 2020/12/15.
//

#import "UIButton+Handler.h"


@implementation UIButton (Handler)

- (void)setCallBlock:(ButtonClickCallBack)bottonCallBack
{
    objc_setAssociatedObject(self, @selector(callBlock), bottonCallBack, OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (ButtonClickCallBack )callBlock
{
    return objc_getAssociatedObject(self, _cmd);
    //    return objc_getAssociatedObject(self, @selector(callBlock));
}



@end
